package com.cos.shop.entity.vo;

import com.cos.shop.entity.Cart;

/**
 * Copyright (C),2021-2022,亚瑟王
 * FileName: CartVo
 * Author: saber
 * Date:2022/9/19 18:27
 */
public class CartVo extends Cart {

    private String pname;
    private double pprice;

    public CartVo() {
    }

    public CartVo(int uid, int pid, double ccount, int cnum, String pname, double pprice) {
        super(uid, pid, ccount, cnum);
        this.pname = pname;
        this.pprice = pprice;
    }

    @Override
    public String toString() {
        return "CartVo{" +
                "pname='" + pname + '\'' +
                ", pprice=" + pprice +
                ", cart=" + super.toString() +
                '}';
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPprice() {
        return pprice;
    }

    public void setPprice(double pprice) {
        this.pprice = pprice;
    }
}
